home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / Source / Car / Battery.h < prev    next >
Encoding:
Text File  |  1992-06-25  |  1.1 KB  |  73 lines

  1.  
  2. /* Generated by Interface Builder */
  3.  
  4. #import <objc/Object.h>
  5.  
  6. @interface Battery:Object
  7. {
  8.     float ampCoefficients[6];
  9.     float efficiency;
  10.     float mass;
  11.     float max;
  12.     float peakDraw;
  13.     BOOL plotAmps;
  14.     BOOL plotCharge;
  15.     BOOL plotVolts;
  16.     double startingLevel;
  17.     double present;
  18.     float voltCoefficients[6];
  19. }
  20.  
  21. // Override methods. 
  22.  
  23. - init;
  24. - read:(NXTypedStream *)stream;
  25. - write:(NXTypedStream *)stream;
  26.  
  27. // This Class' methods
  28.  
  29. - (float *)ampCoefficients;
  30. - setAmpCoefficients:(float *)theCoefficients;
  31.  
  32. - (float)efficiency;
  33. - setEfficiency:(float)aNumber;
  34.  
  35. - (float)mass;
  36. - setMass:(float)aNumber;
  37.  
  38. - (float)max;
  39. - setMax:(float)aNumber;
  40.  
  41. - (float)peakDraw;
  42. - setPeakDraw:(float)aNumber;
  43.  
  44. - (BOOL)plotAmps;
  45. - setPlotAmps:(BOOL)flag;
  46.  
  47. - (BOOL)plotCharge;
  48. - setPlotCharge:(BOOL)flag;
  49.  
  50. - (BOOL)plotVolts;
  51. - setPlotVolts:(BOOL)flag;
  52.  
  53. - (double)present;
  54. - setPresent:(double)aNumber;
  55.  
  56. - (float *)voltCoefficients;
  57. - setVoltCoefficients:(float *)theCoefficients;
  58.  
  59. - (float)powerRequested:(float)power forTime:(float)time;
  60. - getSetForRun;
  61. - finishedRun;
  62. - report:(NXStream *)stream;
  63.  
  64. @end
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.